home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / 386bsd-faq.part8 < prev    next >
Encoding:
Internet Message Format  |  1994-04-02  |  9.9 KB

  1. Subject: [comp.os.386bsd] BNR/2 derived BSD for PCs FAQ (Part 8 of 10)
  2. Newsgroups: comp.os.386bsd.announce,comp.answers,news.answers
  3. From: burgess@hrd769.brooks.af.mil (Dave Burgess)
  4. Date: 31 Mar 1994 21:37:54 -0000
  5.  
  6. Posted-By: auto-faq 2.4
  7. Archive-name: 386bsd-faq/part8
  8.  
  9. Section 7.    (System Communication and Network Information)
  10.  
  11. 7.0    Communications
  12.  
  13.     386bsd and its kith support a wide range of communications methods.
  14.     
  15. 7.1    SLIP
  16.  
  17.     Serial Line I/P is supported in all versions of Net/2 derived BSD.
  18.  
  19.     Brian <brian@awfulhak.demon.co.uk> provides us with a rather
  20.     good explanation of some of the hurdles that must be overcome
  21.     for a working slip interface.
  22.  
  23.     The idea is (overview) that you make a serial line connection to 
  24.     the host, set the line discipline, and tell your router to use 
  25.     this interface as your gateway.  You also should set the gateway 
  26.     up as a nameserver.
  27.  
  28.     Sounds easy ? - well it is if you've done it before.
  29.  
  30.     The _usual_ way of doing this is as follows:
  31.  
  32.     Both server and client must know eachothers inet addresses.  Set 
  33.     these up in /etc/hosts with lines saying
  34.         11.22.33.44 host.my.domain.name host
  35.         11.22.33.55 client.my.domain.name client
  36.  
  37.     where 11.22.33.?? is your inet number, and the following name is 
  38.     the full machine name (and is followed by any number of aliases).
  39.  
  40.     SERVER:
  41.        Create a login - usually Sclientname - and run `sliplogin` as 
  42.        its shell.  I've looked at the docs for sliplogin, and it seems
  43.        fairly straightforward.  [Ed.Note - I have; it is.]
  44.        A fairly common problem on the server is an error that is 
  45.        caused by the lack of a 'sliplogin' entry in the /etc/shells
  46.        file.  Be sure to add sliplogin to your shells file.
  47.  
  48.     CLIENT:
  49.       Set up /etc/resolv.conf to say the following (for the nameserver)
  50.         domain client.my.domain.name
  51.         nameserver 11.22.33.55
  52.  
  53.       ** traditional method **
  54.       - Log on to the server.  This is usually done via kermit or some
  55.       such program.
  56.       - Exit the program (or backround it if your line wants to drop 
  57.       once the device is closed).
  58.       - Run `slattach /dev/comport` for whatever "comport" is.  On most
  59.         Net/2 derived systems, this may be either com0, or cua01, or
  60.         whatever the correct name is for your site.
  61.  
  62.       If you run into an error that says 'not configured' in it, your 
  63.       kernel either does not recognize your port (dmesg will verify that)
  64.       or your kernel does not have the slip interface built in.  See 
  65.       below for the latter.  The former could be caused by any one of 
  66.       a dozen problems, including conflicting or incorrectly identified 
  67.       IRQs or port addresses.
  68.  
  69.       - Run `ifconfig inet sl0 clientname servername netmask 0xffffff00`
  70.       - Run `route add default servername`.
  71.       
  72.         "servername" is your server and "clientname" is your client.
  73.         
  74.       It should now be possible to `ping host`
  75.  
  76.     ** my method **
  77.       Configure /etc/remote
  78.       Configure /etc/host.dial
  79.       Run `slip host`.
  80.  
  81.     /etc/remote contains an extended `tip` entry.  /etc/host.dial 
  82.     contains a login script (and is named in /etc/remote).
  83.  
  84.     Oh yes, don't forget to have a line in your kernel config saying
  85.  
  86.     pseudo-device sl 2
  87.  
  88.     Without this line, you may get a 'device not configured' or 
  89.     'TIO...' error because the slip driver is not built into the 
  90.     kernel.
  91.  
  92.     I uploaded the slip package a while ago (to several archives), but 
  93.     was unaware of needing to notify the postmaster.  They've probably 
  94.     all been removed now.  Slip packages are available from many FTP 
  95.     sites; use archie to find the site nearest you.
  96.  
  97.  
  98. 7.2    CSLIP
  99.  
  100.     SLIP is included in the NetBSD-0.9 stock kernel and in the source
  101.     tree.  It is also available in FreeBSD.
  102.  
  103.  
  104. 7.3    PPP
  105.  
  106.     Implementations of Point to Point Protocol are also available.  PPP
  107.     should be available in the next major release (0.9+) of NetBSD and 
  108.     in the current release of FreeBSD.
  109.  
  110.     It should also be noted that there is a newsgroup that covers the 
  111.     PPP protocol exclusively.  It is comp.protocols.ppp.
  112.  
  113.  
  114. 7.4    TCP/IP
  115.  
  116.     TCP/IP is an integral part of Net/2 BSD.  There are at least five
  117.     different network card drivers.  TCP/IP is fully supported and is
  118.     available to all users of Net/2 derived BSD systems.  In fact,
  119.     many people believe that this area is one of the primary advantages
  120.     that Net/2 has over Linux.
  121.  
  122.  
  123. 7.5    UUCP
  124.  
  125.     There is an excellent document included in the UUCP directory
  126.     that describes in detail, what needs to be done to get a working
  127.     UUCP for Net/2 BSD systems.  Look in the /usr/src/gnu/libexec/uucp
  128.     directory for more information.  You can also look in the 
  129.     /usr/share/doc/smm/09.uucpimpl and /usr/share/doc/smm/21.uucpnet
  130.     if yours are populated.
  131.  
  132.     
  133. 7.5.1    TIP/CU
  134.  
  135.     First thing you need to do is...
  136.  
  137.         vi /etc/remote
  138.  
  139.     Then remove the two lines at the bottom of the file that mention 
  140.     com1, and com2.  Now add the following lines:
  141.  
  142.         com0:dv=/dev/com0:br#9600:
  143.         com1:dv=/dev/com1:br#9600:
  144.  
  145.     That tells tip/cu where to find your com ports.  Next you need 
  146.     to be logged in as root and do a:
  147.  
  148.         chown uucp.dialer /dev/com0
  149.         chown uucp.dialer /dev/com1
  150.         touch /var/log/aculog
  151.         chown uucp.dialer /var/log/aculog
  152.  
  153.     Make sure that, if you are running newsyslog, you change the 
  154.     owner.group entry in the newsyslog.conf file so that the file
  155.     ownership is maintained correctly.
  156.  
  157.     Then you should be all set, remember "DOS Com1" = com0, and 
  158.     "DOS Com2" = com1.  So, if your modem is at 0x2F8/IRQ=3 and you
  159.     access it as the COM2: port from DOS, you would do..
  160.  
  161.         tip com1
  162.  
  163.     To exit, type <RETURN>~.<RETURN>
  164.  
  165.     Many people have a problem with the lock open: procedure.   
  166.     If you receive the error:
  167.  
  168.     lock open: no such file or directory
  169.     all ports busy
  170.  
  171.     You need to create a directory: /var/spool/lock, owned by uucp.  If
  172.     this file already exists and is owned correctly, make sure that the
  173.     lock file in the directory is deleted.
  174.  
  175.     This answer thanks to (crt@tiamat.umd.umich.edu).
  176.  
  177.  
  178. 7.5.2    What is the magic incantation that allows the modem to dial?
  179.  
  180.     Try 'stty -f /dev/tty0? clocal'.  Change the '?' for whatever 
  181.     character is appropriate for your tty port.  Remember, DOS COM1 = 
  182.     /dev/tty00 and DOS COM2 = /dev/tty01...
  183.  
  184.     Some other things that might cause some problems are the entries
  185.     in the /etc/remotes file.  Try 'com?:dv=/dev/tty0?:br#19200:pa=none'
  186.     and see if that helps.  Remember to replace the '?' with '[01234]'
  187.     as appropriate.
  188.  
  189.  
  190. 7.6    Terminals
  191.  
  192.     Since the target machine for most Net/2 machines is a 386 with 
  193.     no more than a couple of serial ports, most people do not bother 
  194.     with serial terminals.  For most problems, a quick perusal of the 
  195.     man pages for the ttys file and getty are enough to get them 
  196.     started.  Other than that, most terminal problems are limited to
  197.     peculiarities of particular terminals.
  198.  
  199.     One common problem that appears to crop up from time to time is
  200.     which wires need to be connected at each end of the cable.  Most
  201.     cables do not, in fact, pass through all lines.  If your terminal 
  202.     uses XON/XOFF (DC1/DC3) protocol, a cable of the appropriate 
  203.     twist, either straight through or null modem, can have as few as
  204.     three lines connecting the two devices.  Assuming DB-25 connections
  205.     at each end, the lines need to go from 2 to 3, 3 to 2, and 7 to 7.
  206.     These lines are Rx, Tx, and gnd.  Other lines that may or may not
  207.     be required include 4 and 5; and 6, 8, and 20.  Normally, these 
  208.     lines would be connected within the 'hood' of the cable (4 to 5 
  209.     and 6 and 8 to 20) to simulate the functionality of the full 
  210.     blown cable.  While full support for CTS/RTS is not available 
  211.     (yet), other support for the remainder of these lines is available 
  212.     or is being worked on in all Net/2 derived systems.  Without this
  213.     handshaking (particularly pins 6, 8, and 20) your ports may appear
  214.     to be dead.  This is because most of the tty driver for *BSD 
  215.     systems require a Data Carrier Detect to be active before the
  216.     port will work.
  217.  
  218.     For those folks that have hardware flow control working, you need
  219.     to look in the man page for 'stty' and look around for the 
  220.     -clocal and -ctrcrts options.
  221.  
  222.     Once the cable is set up, you will need to make sure that your
  223.     system is ready.  The first thing you will need to do is make all
  224.     of the devices in the /dev/ directory.  A program, called MAKEDEV,
  225.     is available in the /dev directory.  Running this program with 
  226.     the argument 'tty' will make all of the physical tty devices.
  227.  
  228.     With that done, arranging for a 'getty' on the port is the next 
  229.     order of business.  You will need to edit the '/etc/ttys/' file
  230.     and make one of the tty devices available.  If you have 
  231.     connected your terminal to DOS COM1, you will be enabling /dev/tty00.
  232.     Similarly, if you are connected to COM2:, you will be enabling
  233.     /dev/tty01 (see the pattern?).  There are other names for those
  234.     ports as well, but when you are talking about terminals, be sure
  235.     to use the /dev/tty* names.  If not, you will be completely 
  236.     ignored and treated as an outcast because you obviously have not
  237.     done any of your homework.
  238.  
  239.     One of the other common problems with the SIO driver is that 
  240.     people will often disable all handshaking, and then complain that
  241.     they cannot get a reliable connection above 9600 baud.  Handshaking 
  242.     is the solution to most of these problems.
  243.  
  244.  
  245.  
  246. 7.7    Can network attached assets be used by/from NetBSD?
  247.  
  248.     Yes, they can, assuming the machine at the other end of the 
  249.     connections is reasonably cooperative.  The specifics are up to the
  250.     remote machine, but a couple of things that you can start looking
  251.     for that will help are provided below:
  252.  
  253.         -  Ask the system administrator of the machine in question
  254.            if it is OK for you to use whatever it is you need.  This
  255.            is more a matter of manners than a technical issue.
  256.  
  257.         -  For NFS mounted disk drives, make sure that you are not
  258.            prevented from using the assets by the /etc/exports
  259.            (or equivalent) file.  This goes for CD-ROMs as well as
  260.            regular mounted disks.
  261.  
  262.         -  There are a completely different set of concerns for
  263.            tapes and printers.  Each system implements these in
  264.            slightly different ways.  Check with your system manager
  265.            or documentation for more information.
  266.  
  267.